package com.netease.nim.uikit.xpopup.popuview

import android.content.Context
import android.view.View
import com.lxj.xpopup.core.BottomPopupView
import www.wen.com.common.R
import www.wen.com.common.lib.extension.setOnClickListenerAgency
import www.wen.com.common.lib.helper.ResultUiCallBack


/**
 * @author WEN
 * @Description:底部选择弹框
 * @date 2021/3/3 14:53
 */
abstract class BottomSortOptionPopupView(
    context: Context,
    private val resultCallBack: ResultUiCallBack<Any>,
) : BottomPopupView(context), View.OnClickListener {

    private lateinit var strGrouping: View

    private lateinit var strFrequency: View

    override fun getImplLayoutId(): Int = R.layout.popupview_grouping

    override fun onCreate() {
        super.onCreate()
        strGrouping = findViewById(R.id.strGrouping)
        strFrequency = findViewById(R.id.strFrequency)
        setOnClickListenerAgency(this, strGrouping, strFrequency)
    }

    override fun onClick(v: View) {
        resultCallBack(v, Object(),this)
    }

}


